package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
public class RoomPrice implements Serializable {

  @TableId(type = IdType.AUTO)
  @Field(type = FieldType.Integer)
  private Integer id;
  @Field(type = FieldType.Integer)
  private Integer rid;
  @Field(type = FieldType.Long)
  private Date date;
  @Field(type = FieldType.Double)
  private double price;
  @Transient
  private Integer type;
  @Field(type = FieldType.Integer)
  private Integer number; //预订的房间数
  @Field(type = FieldType.Integer)
  private Integer hasNumber; //总共的房间数
}
